﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain;
using ShivamEMR.Model.Domain.CompanyDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.PatientDomain
{
   public class Insurance
    {
        #region Properties
        public Guid ID { get; set; }
        public string CardNo { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
       [ForeignKey("Patient")]
        public Guid PatientID { get; set; }
       [ForeignKey("Company")]
        public int CompanyID { get; set; }
       [ForeignKey("Plan")]
        public Guid InsurancePlanID { get; set; }
       [ForeignKey("Category")]
        public int InsuranceCategoryID { get; set; }
       [ForeignKey("Status")]
        public int InsuranceStatusID { get; set; } 
        #endregion

        #region NavigationalProperties
        public virtual Patient Patient { get; set; }
        public virtual Company Company { get; set; }
        public virtual InsurancePlan Plan { get; set; }
        public virtual InsuranceCategory Category { get; set; }
        public virtual InsuranceStatus Status { get; set; }        
        #endregion

    }
}
